package com.example.trackcircuitdiagnosis.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.example.trackcircuitdiagnosis.entity.DataAnalongTableEntity;
import com.example.trackcircuitdiagnosis.mapper.DataAnalongTableMapper;
import com.example.trackcircuitdiagnosis.service.DataAnalongTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 23639
* @description 针对表【data_analong_table(模拟量+开关量项目表)】的数据库操作Service实现
* @createDate 2023-12-13 19:19:48
*/
@Service
public class DataAnalongTableServiceImpl extends ServiceImpl<DataAnalongTableMapper, DataAnalongTableEntity>
    implements DataAnalongTableService {

    @Autowired
    private DataAnalongTableMapper dataAnalongTableMapper;

    @Override
    public List<DataAnalongTableEntity> dataAnalogALl(Integer mid) {
        QueryWrapper<DataAnalongTableEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.like("mid",mid);

        return dataAnalongTableMapper.selectList(queryWrapper);
    }
}




